import request from '../util/axios'
import qs from "qs";


export function  getMeetingById(meetingId){

    return request({
        url:'/meeting/getMeetingById',
        method: 'get',
        params:{
            meetingId:meetingId
        }
    })
}
export function  insertReserveInfo(data){
    return request({
        url:'/reserve/insertReserveInfo',
        method: 'post',
        headers:{
            'content-type':'application/x-www-form-urlencoded'
        },
        data:qs.stringify(data)
    })
}

export function  getReserveInfo(id){
    return request({
        url:'/reserve/selectByApplyId',
        method: 'get',
        params:{
            userId:id
        }
    })
}

export function  deleteReserveById(id){
    return request({
        url:'/reserve/deleteReserveById',
        method: 'get',
        params:{
            Id:id
        }
    })
}

export function  selectReserveAll(currPage,pageSize){
    return request({
        url:'/reserve/selectReserveAll',
        method: 'get',
        params:{
            currPage:currPage,
            pageSize:pageSize
        }
    })
}

export function  selectReserved(currPage,pageSize){
    return request({
        url:'/reserve/selectReserved',
        method: 'get',
        params:{
            currPage:currPage,
            pageSize:pageSize
        }
    })
}


export function  selectUnReserved(currPage,pageSize){
    return request({
        url:'/reserve/selectUnReserved',
        method: 'get',
        params:{
            currPage:currPage,
            pageSize:pageSize
        }
    })
}

export function  judgeReserve(id,status){
    return request({
        url:'/reserve/judgeReserve',
        method: 'get',
        params:{
            id:id,
            status:status
        }
    })
}





